import request from '@/utils/request'
    //查询所有类别信息的接口
    export function allCategory(data) {
        return request({
          url: '/api/admin/category/allCategory/',
          method: 'post',
          data: data
        })
      }
    //allCategory: query => post('/api/admin/category/allCategory/' + query),
    //根据id查找类别
    export function selectCategory(id) {
        return request({
          url: '/api/admin/category/select/' + id,
          method: 'post'
        })
      }
    //selectCategory: id => post('/api/admin/category/select/' + id),
    //类别信息的页面查询接口
    //getCategoryPageList: query => post('/api/admin/category/page', query),
    export function getCategoryPageList(data) {
        return request({
          url: '/api/admin/category/page',
          method: 'post',
          data: data
        })
      }
    //类别信息的编辑接口
    //createCategory: query => post('/api/admin/category/edit', query),
    export function createCategory(data) {
        return request({
          url: '/api/admin/category/edit',
          method: 'post',
          data: data
        })
      }
    //类别信息的删除接口
    //deleteCategory: id => post('/api/admin/category/delete/' + id),
    export function deleteCategory(id) {
        return request({
          url: '/api/admin/category/delete/' + id,
          method: 'post'
        })
      }
    //某个类别的启用状态改变接口
    //changeStatus: id => post('/api/admin/category/changeStatus/' + id),
    export function changeStatus(id) {
        return request({
          url: '/api/admin/category/changeStatus/' + id,
          method: 'post'
        })
      }


